import { defineStore } from "pinia";

// 创建管理员数据管理仓库
export const adminStore = defineStore("admin", {
  state: () => {
    return {
      //   adminInfo: {},
      menus: [
        {
          id: 1,
          icon: "House",
          name: "系统首页",
          child: [
            {
              id: 111,
              icon: "House",
              name: "首页",
              frontpath: "/home/body",
            },
          ],
        },
        {
          id: 2,
          icon: "Shop",
          name: "店铺管理",
          child: [
            {
              id: 122,
              icon: "Menu",
              name: "分类导航",
              frontpath: "/store/Store_Classify",
            },
          ],
        },
        {
          id: 3,
          icon: "Sell",
          name: "商品管理",
          child: [
            {
              id: 131,
              icon: "Goods",
              name: "商品列表",
              frontpath: "/commodity/Commodity_list",
            },
            {
              id: 132,
              icon: "Present",
              name: "商品分类",
              frontpath: "/commodity/Commodity_classify",
            },
            {
              id: 133,
              icon: "ChatLineRound",
              name: "商品评价",
              frontpath: "/commodity/Commodity_evaluate",
            },
          ],
        },
        {
          id: 4,
          icon: "ShoppingTrolley",
          name: "订单管理",
          child: [
            {
              id: 141,
              icon: "Notebook",
              name: "订单列表",
              frontpath: "/order/OrderForm_List",
            },
            {
              id: 142,
              icon: "SoldOut",
              name: "售后处理",
              frontpath: "/order/AfterSale",
            },
          ],
        },
        {
          id: 5,
          icon: "User",
          name: "用户管理",
          child: [
            {
              id: 151,
              icon: "User",
              name: "用户列表",
              frontpath: "/user/UserList",
            },
          ],
        },
        {
          id: 8,
          icon: "ShoppingBag",
          name: "营销管理",
          child: [
            {
              id: 181,
              icon: "Ticket",
              name: "优惠券",
              frontpath: "/marketing/discount",
            },
          ],
        },
        {
          id: 9,
          icon: "DataAnalysis",
          name: "数据统计",
          child: [
            {
              id: 191,
              icon: "Coin",
              name: "用户统计",
              frontpath: "/data/UserStatistics",
            },
            {
              id: 192,
              icon: "DataLine",
              name: "商品统计",
              frontpath: "/data/ProductStatistics",
            },
            {
              id: 193,
              icon: "PieChart",
              name: "订单统计",
              frontpath: "/data/OrderStatisyics",
            },
          ],
        },
        {
          id: 11,
          icon: "ChatDotRound",
          name: "消息管理",
          child: [
            {
              id: 102,
              icon: "ChatDotSquare",
              name: "消息通知",
              frontpath: "/information/Message",
            },
          ],
        },
        {
          id: 10,
          icon: "Setting",
          name: "系统设置",
          child: [
            {
              id: 101,
              icon: "Unlock",
              name: "操作权限",
              frontpath: "/system/Jurisdiction",
            },
            {
              id: 104,
              icon: "User",
              name: "账号管理",
              frontpath: "/system/admin",
            },
          ],
        },
      ],
    };
  },
  actions: {},
});
